/**
 * 试验内容 编辑页
 *
 * 作者 ganjun
 * 日期 2024-11-18 11:13:09
 */
layui.use(['jquery','febs', 'form', 'validate'], function () {
    var $ = layui.$,
        febs = layui.febs,
        layer = layui.layer,
        form = layui.form,
        $view = $('#taskTest-edit'),
        validate = layui.validate;

    form.verify(validate);
    form.render();
    initFormValue();
    $("#verifyResult").val("true");
    function initFormValue() {
        if (taskTestData) {
            var  navigate= taskTestData.navigate||'';
            var strArr=navigate.split("/");
            var    navigate1='';
            var navigate2='';
            if(strArr.length==2){
                 navigate1=strArr[0];
                navigate2=strArr[1];
            }
            form.val("taskTest-edit-form", {
                "id":taskTestData.id,
                "no": taskTestData.no,
                "resistance": taskTestData.resistance,
                "navigate1": navigate1,
                "navigate2": navigate2,
                "seakeep": taskTestData.seakeep,
                "controll": taskTestData.controll,
                "vain":taskTestData.vain,
            });
        }
    }


});